import request from '@/utils/request'

// 查询反馈与投诉列表
export function listFeedbackComplaint(query) {
  return request({
    url: '/system/feedbackComplaint/list',
    method: 'get',
    params: query
  })
}

// 查询反馈与投诉详细
export function getFeedbackComplaint(id) {
  return request({
    url: '/system/feedbackComplaint/' + id,
    method: 'get'
  })
}

// 新增反馈与投诉
export function addFeedbackComplaint(data) {
  return request({
    url: '/system/feedbackComplaint',
    method: 'post',
    data: data
  })
}

// 修改反馈与投诉
export function updateFeedbackComplaint(data) {
  return request({
    url: '/system/feedbackComplaint',
    method: 'put',
    data: data
  })
}

// 删除反馈与投诉
export function delFeedbackComplaint(id) {
  return request({
    url: '/system/feedbackComplaint/' + id,
    method: 'delete'
  })
}
